<div id="enter-critique">

  <h3>Write a critique</h3>

  <% if enter.critiques.size<3 %>
  Since you are writing one of the first three conforming critiques for this photo, then you will receive three critique points every time another user rates your critique helpful. But you will also lose that many critique points if another user rates your critique unhelpful, so please read the guidelines below and consider your words carefully.
  <% else %>
  There are already three conforming critiques for this photo, so you will receive only the usual one critique point every time another user rates your critique helpful. You will also lose one critique point if another user rates your critique unhelpful, so please read the guidelines below and consider your words carefully. 
  <% end %>
  <p>

  <% up_unq_img = image_tag("up-unq-light.gif", :alt=>"Non-conforming thumb-up", :align=>"absmiddle" )%>
  <% down_unq_img = image_tag("down-unq-light.gif", :alt=>"Non-conforming thumb-down", :align=>"absmiddle" )%>

  <%= form_tag :controller=>"critiques", :action=>"save", :id=>enter %>
    <label>Your rating&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><%= radio_button :critique, :rate, 3 %><%= up_unq_img %>&nbsp;<%= up_unq_img %>&nbsp;<%= up_unq_img %> </td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;Artistically and technically flawless</td>
      </tr>
      <tr>
        <td><%= radio_button :critique, :rate, 2 %><%= up_unq_img %>&nbsp;<%= up_unq_img %> </td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;High-quality photo yet could be better</td>
      </tr>
      <tr>
        <td><%= radio_button :critique, :rate, 1, :checked=>"checked" %><%= up_unq_img %> </td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;Overall good effort but in need of improvement</td>
      </tr>
      <tr>
        <td><%= radio_button :critique, :rate, -1 %><%= down_unq_img %> </td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;Uninspired and uninteresting</td>
      </tr>
      <tr>
        <td><%= radio_button :critique, :rate, -2 %><%= down_unq_img %>&nbsp;<%= down_unq_img %> </td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;Seriously and irredeemably flawed</td>
      </tr>
      <tr>
        <td><%= radio_button :critique, :rate, -3 %><%= down_unq_img %>&nbsp;<%= down_unq_img %>&nbsp;<%= down_unq_img %> </td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;Offensive or repugnant</td>
      </tr>
    </table><p>
    <label>Comment</label>
    <%= text_area :critique, :content, :cols=>"80%", :rows=>8 %><p>
    <%= submit_tag "Save" %>&nbsp;&nbsp;&nbsp;&nbsp;
    <%= link_to_remote "Cancel", :update=>"write_critique",
                                 :url=>{:controller=>"critiques", :action => "cancel", :id=>enter}%>
  <%= end_form_tag %>
<hr>
</div>
